package com.itheima.homework.homework05;

public class Test {
    public static void main(String[] args) {
        Laptop laptop = new Laptop();
        laptop.turnOn();
        USB usb = laptop.Usb(new Mouse());
        usb.open();
        usb.close();
        USB usb1 = laptop.Usb(new Keyboard());
        usb1.open();
        usb1.close();
        laptop.turnOff();
    }
}
